home *** CD-ROM | disk | FTP | other *** search
/ EnigmA Amiga Run 1999 March / EnigmA AMIGA RUN 35 (1999)(G.R. Edizioni)(IT)[!][issue 1999-03].iso / earcd / devel / libx11 / include / x11 / xaw / reports.h < prev    next >
C/C++ Source or Header  |  1999-01-01  |  2KB  |  52 lines

  1. /*
  2.  * $XConsortium: Reports.h,v 1.3 90/02/28 18:46:46 jim Exp $
  3.  *
  4.  * Copyright 1990 Massachusetts Institute of Technology
  5.  *
  6.  * Permission to use, copy, modify, distribute, and sell this software and its
  7.  * documentation for any purpose is hereby granted without fee, provided that
  8.  * the above copyright notice appear in all copies and that both that
  9.  * copyright notice and this permission notice appear in supporting
  10.  * documentation, and that the name of M.I.T. not be used in advertising or
  11.  * publicity pertaining to distribution of the software without specific,
  12.  * written prior permission.  M.I.T. makes no representations about the
  13.  * suitability of this software for any purpose.  It is provided "as is"
  14.  * without express or implied warranty.
  15.  *
  16.  * M.I.T. DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE, INCLUDING ALL
  17.  * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO EVENT SHALL M.I.T.
  18.  * BE LIABLE FOR ANY SPECIAL, INDIRECT OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES
  19.  * WHATSOEVER RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION
  20.  * OF CONTRACT, NEGLIGENCE OR OTHER TORTIOUS ACTION, ARISING OUT OF OR IN 
  21.  * CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
  22.  */
  23.  
  24. #ifndef _Xaw_Reports_h
  25. #define _Xaw_Reports_h
  26.  
  27. /*
  28.  * XawPannerReport - this structure is used by the reportCallback of the
  29.  * Panner, Porthole, Viewport, and Scrollbar widgets to report its position.
  30.  * All fields must be filled in, although the changed field may be used as
  31.  * a hint as to which fields have been altered since the last report.
  32.  */
  33. typedef struct {
  34.     unsigned int changed;        /* mask, see below */
  35.     Position slider_x, slider_y;    /* location of slider within outer */
  36.     Dimension slider_width, slider_height;  /* size of slider */
  37.     Dimension canvas_width, canvas_height;  /* size of canvas */
  38. } XawPannerReport;
  39.  
  40. #define XawPRSliderX        (1 << 0)
  41. #define XawPRSliderY        (1 << 1)
  42. #define XawPRSliderWidth    (1 << 2)
  43. #define XawPRSliderHeight    (1 << 3)
  44. #define XawPRCanvasWidth    (1 << 4)
  45. #define XawPRCanvasHeight    (1 << 5)
  46. #define XawPRAll        (63)    /* union of above */
  47.  
  48. #define XtNreportCallback "reportCallback"
  49. #define XtCReportCallback "reportCallback"
  50.  
  51. #endif /* _Xaw_Reports_h */
  52.